package com.news.service.impl;

import java.util.List;

import com.news.dao.impl.NewsCategoryDaoImpl;
import com.news.service.CategoryService;
import com.news.ssh.entity.NewsCategory;

public class CategoryServiceImpl implements CategoryService {

	private NewsCategoryDaoImpl newscategorydao;
	
	
	public void setNewscategorydao(NewsCategoryDaoImpl newscategorydao) {
		this.newscategorydao = newscategorydao;
	}


	public NewsCategory findbyid(Integer id) {
		return newscategorydao.findbyid(id);
		
	}


	public List<NewsCategory> findall() {
		return newscategorydao.findall();
		
	}

}
